package com.jdym.back.service;

import com.jdym.back.entity.Loan;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jdym.back.entity.dto.ExcelDTO;
import com.jdym.back.entity.vo.LoanInfo;

import java.util.List;

/**
 * <p>
 * 贷款表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
public interface LoanService extends IService<Loan> {

     List<ExcelDTO> listData(int t);

//    public List<Loan> getLoanById(int firmId);

    public Loan getLoanById(int firmId);
    public List<LoanInfo> getAllLoanApply();


    LoanInfo getAllLoanFileById(int id);

    List<LoanInfo> getAllLoanByKeyWord(String keyWord);


    List<LoanInfo> getAllapprovedSuc();


    int applyLoan(Loan loan);


    List<LoanInfo> historyLoan(int firmId);


    List<LoanInfo> getAllLoanWithMsg();


    List<Loan> selectStatisics(String start, String end);


    void updateLoanPutId(Loan loan);


    Loan getLoanCobankFirm(int id);
}
